package com.example.audiorecorddemo.utils;

import android.content.Context;

/**
 * @author:njb
 * @date: 2023/10/5 15:02
 * @desc:描述
 **/
public class StringUtils {
    public static String getPermissionName(Context context,String per) {
        switch (per) {
            case "android.permission.WRITE_EXTERNAL_STORAGE":
            case "android.permission" +
                    ".READ_EXTERNAL_STORAGE":
                return "文件存储";
            case "android.permission.ACCESS_COARSE_LOCATION":
            case "android.permission" +
                    ".ACCESS_FINE_LOCATION":
                return "定位";
            case "android.permission.RECORD_AUDIO":
                return "录音权限";
            case "android.permission.CAMERA":
                return "拍照";
        }
        return "";
    }
}
